package com.ww.delegation;

public class DerivedSpaceShip extends SpaceShipControls {
    private String name;
    public DerivedSpaceShip(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return name;
    }

    public static void main(String[] args) {
        DerivedSpaceShip dss = new DerivedSpaceShip("NSEA");
        dss.forward(100);
    }
}
